package com.hczt.xhminiapp.appapi.controller;

import com.hczt.xhminiapp.appapi.resolver.CurrentDoctor;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 红创-马海强
 * @date 2019-03-12 13:58
 * @description
 */
@RestController
@Slf4j
@Api(tags="测试类")
public class DemoController {

    @GetMapping("public/api/demo")
    public Object demo1(CurrentDoctor doctor) {
        log.info("url: public/api/demo");
        return "public/api/demo request success";
    }

    @GetMapping("api/demo2")
    public Object demo2(CurrentDoctor doctor) {
        log.info("url: api/demo2");
        return "api/demo2 request success";
    }
}
